<template>
  <div style="font-size: 50px" @click="registerSubmit">
执行
  </div>
</template>

<script setup>
import {signUp} from "@/api/user";
/**
 * 表单数据
 */
const fore = () => {
  for (let  i = 0;i<100;i++){
    registerSubmit()
  }
}
const formData2 = ref({
  activeCode: 'GD8GBH', //邀请码
  email: '', // 手机号
  signType: '3', // 手机号
  loginPassword: '' ,//区号
  loginName: '', //区号
  ignoreValidateCode: 'true' //区号
})
const registerSubmit = (params) => {
  let j = 7
  for ( let i = 0;i <= 2;i++){
    formData2.value.loginName = 'text' +  j++
    formData2.value.loginPassword = '123456'
    signUp(formData2.value)
        .then((res) => {
          console.log(res,'')
          // formData2.value.activeCode = res.data.activeCode
        })
        .catch((err) => {
          console.log(err)
        })
  }
}
</script>

<style lang="scss" scoped></style>
